#include "Question.h"

int nothing;

/*
int getNbLigne(FILE* fp){
  int nbLignes;
  int retVal;
  
  nbLignes = 0;
  while(1){
    retVal = fgetc(fp);
    if(reVal == EOF) break;
    if((char)retVal == '\n') nbLignes++;
  }
  
  return nbLignes;
}


pQuestion newQuestion(){
  return newQuestion(QUESTION_FICHIER);
}

pQuestion newQuestion(char* fichierQuestion) {
  FILE* fp;
  int nbQuestions,nQuestion;
  
  fp = fopen(fichierQuestion,"r");
  if(fp == NULL) return NULL;
  

  nbQuestions = getNbLigne(fp);
  if(nbQuestions == 0) return NULL;
  
  nQuestion = myRand(nbQuestions);
  return getQuestionNb(fp,qLigne);
  
}

void deleteQuestion(pQuestion question);
int questionEstBonneReponse(pQuestion question,char* reponse);
int questionIsReponseValide(pQuestion question,char* reponse);
int questionGetNbReponse(pQuestion question);
int questionGetReponseNb(pQuestion question,int n);





#endif
*/
